feat(fuse): add hash-distributed partition writes - #20214
Closed
KKould wants to merge 20 commits into
Closed
Conversation
# Conflicts: # src/query/ast/src/parser/statement.rs # src/query/service/src/interpreters/interpreter_table_rename_column.rs # src/query/service/src/interpreters/interpreter_table_show_create.rs # src/query/sql/src/planner/binder/ddl/table.rs # src/query/storages/common/table_meta/src/table/table_keys.rs # src/query/storages/fuse/src/fuse_table.rs # src/query/storages/fuse/src/operations/append.rs # src/query/storages/fuse/src/operations/common/meta/mutation_log.rs # src/query/storages/fuse/src/operations/common/processors/transform_block_writer.rs # src/query/storages/fuse/src/operations/common/processors/transform_mutation_aggregator.rs # src/query/storages/fuse/src/operations/common/processors/transform_serialize_block.rs # src/query/storages/fuse/src/operations/recluster.rs # src/query/storages/fuse/src/pruning/fuse_pruner.rs
# Conflicts: # src/query/storages/fuse/src/operations/common/processors/transform_mutation_aggregator.rs
- sqllogictest: verify SET OPTIONS partition_by rejection, MODIFY COLUMN partition-key rejection, unrelated-filter no-pruning, DELETE+compact boundary preservation, and CTAS partition boundary on initial write - unit: partition_values/same_partition fallback cases (None stats, mismatched key id, min!=max prefix) - unit: PartitionPruner::should_keep returns true conservatively when segment has no cluster statistics
Member
Author
|
Superseded by #20216, recreated from the updated main branch with only the hash-distributed partition write commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
Draft stacked on #20143.
bucket(count, value)partition transform.WRITE_DISTRIBUTION_MODE = hashfor partitioned Fuse tables.EvalScalar -> GlobalHash -> Sortphysical operators beforeDistributedInsertSelect.The goal is to reduce fragmented blocks when unordered input repeatedly crosses physical partition boundaries.
Current scope
bucket(count, value)controls physical partition cardinality. It does not configure the number of execution nodes or pipeline lanes.Tests
CARGO_BUILD_JOBS=2 env REGENERATE_GOLDENFILES=1 cargo test -p databend-common-functions --test it test_hashCARGO_BUILD_JOBS=2 cargo check -p databend-query09_0054_partition_by.test, execution pendingType of change
This change is